package collections;

public class LinkedListNode <T> {
	private LinkedListNode<T> prev;
	private LinkedListNode<T> next;
	private T key;

	public LinkedListNode() {
	}
	public LinkedListNode(T key) {
		setKey(key);
	}	
	public LinkedListNode<T> getPrev() {
		return prev;
	}
	public void setPrev(LinkedListNode<T> prev) {
		this.prev = prev;
	}
	public LinkedListNode<T> getNext() {
		return next;
	}
	public void setNext(LinkedListNode<T> next) {
		this.next = next;
	}
	public T getKey() {
		return key;
	}
	public void setKey(T key) {
		this.key = key;
	}
}
